package com.ktgj.other.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.other.mapper.RcOrderLocationMapper;
import com.ktgj.other.domain.RcOrderLocation;
import com.ktgj.other.service.IRcOrderLocationService;

/**
 * 专车订单地点Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
@Service
public class RcOrderLocationServiceImpl implements IRcOrderLocationService 
{
    @Autowired
    private RcOrderLocationMapper rcOrderLocationMapper;

    /**
     * 查询专车订单地点
     * 
     * @param rcorderlocationid 专车订单地点ID
     * @return 专车订单地点
     */
    @Override
    public RcOrderLocation selectRcOrderLocationById(Long rcorderlocationid)
    {
        return rcOrderLocationMapper.selectRcOrderLocationById(rcorderlocationid);
    }

    /**
     * 查询专车订单地点列表
     * 
     * @param rcOrderLocation 专车订单地点
     * @return 专车订单地点
     */
    @Override
    public List<RcOrderLocation> selectRcOrderLocationList(RcOrderLocation rcOrderLocation)
    {
        return rcOrderLocationMapper.selectRcOrderLocationList(rcOrderLocation);
    }

    /**
     * 新增专车订单地点
     * 
     * @param rcOrderLocation 专车订单地点
     * @return 结果
     */
    @Override
    public int insertRcOrderLocation(RcOrderLocation rcOrderLocation)
    {
        return rcOrderLocationMapper.insertRcOrderLocation(rcOrderLocation);
    }

    /**
     * 修改专车订单地点
     * 
     * @param rcOrderLocation 专车订单地点
     * @return 结果
     */
    @Override
    public int updateRcOrderLocation(RcOrderLocation rcOrderLocation)
    {
        return rcOrderLocationMapper.updateRcOrderLocation(rcOrderLocation);
    }

    /**
     * 批量删除专车订单地点
     * 
     * @param rcorderlocationids 需要删除的专车订单地点ID
     * @return 结果
     */
    @Override
    public int deleteRcOrderLocationByIds(Long[] rcorderlocationids)
    {
        return rcOrderLocationMapper.deleteRcOrderLocationByIds(rcorderlocationids);
    }

    /**
     * 删除专车订单地点信息
     * 
     * @param rcorderlocationid 专车订单地点ID
     * @return 结果
     */
    @Override
    public int deleteRcOrderLocationById(Long rcorderlocationid)
    {
        return rcOrderLocationMapper.deleteRcOrderLocationById(rcorderlocationid);
    }
}
